import React from 'react'

import PubSub from 'pubsub-js';

export default function A() {

    let pubClick = () => {
        console.log('dddfff');
        PubSub.publish('myClick', {
            aa: '1',
            bb: '2'
        });
    }
    return (
        <div>
            A<br />
            <button onClick={() => pubClick()} >发布按钮</button>
        </div>
    )
}
